package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

@Data
// 表名
@TableName("ve_oa_notice_user")
// 返回值变成对象
@Accessors(chain = true)
// 重写toString
@EqualsAndHashCode(callSuper = false)
public class VeOaNoticeUserEntity {
    /**id*/
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Long id;
    //公告通知id
    @Excel(name = "公告通知id", width = 15)
    @ApiModelProperty(value = "公告通知id")
    @TableField(value = "notice_id")
    private Long noticeId;
    //收阅用户id
    @Excel(name = "收阅用户id", width = 15)
    @ApiModelProperty(value = "收阅用户id")
    @TableField(value = "user_id")
    private Long userId;
    //收阅用户名
    @Excel(name = "收阅用户名", width = 15)
    @ApiModelProperty(value = "收阅用户名")
    @TableField(value = "user_name")
    private String userName;
}
